1 @database "GetAudioID.guide"
3 @author "Tomi Blinnikka"
4 @(c) "Copyright Tomi Blinnikka 1996"
5 @$VER: GetAudioID.guide 1.01 (01.05.96) (C) Copyright Tomi Blinnikka 1996
8 @node Main "GetAudioID table of contents"
11 01.05.96 @{b}GetAudioID V1.01@{ub}
13 @{u}Table of contents@{uu}
15 @{"Document versions " link Doc_Version}
16 @{"Copyright " link Copyright}
17 @{"What does GetAudioID do? " link Basics}
18 @{"Compatibility " link Compatibility}
19 @{"Starting from CLI/Shell " link CLIStart}
20 @{"Starting from Workbench " link WBStart}
21 @{"How to use the formatting string " link Examples}
22 @{"Error messages " link Errors}
24 @{"Versions " link Versions}
25 @{"Future versions " link Future}
26 @{"Shareware fee " link Shareware}
27 @{"Contacting the author " link Author}
30 @node Doc_Version "Document version"
34 @{u}DOCUMENT VERSIONS@{uu}
36 Updated: 30.04.96 - for version 1.00
37 Updated: 01.05.96 - for version 1.01
40 @node Copyright "Copyright information"
44 @{u}COPYRIGHT INFORMATION@{uu}
46 Copyright (C) @{"Tomi Blinnikka" link "Author"} 1996, @{u}All Rights Reserved.@{uu}
48 This program is @{"SHAREWARE" link "Shareware"}. This means that you can copy it and give it
49 to all your friends, upload it to a BBS or include it in a PD-library
50 (FISH, Aminet CDROMS etc.). BUT (!!!) if you use this program
51 frequently you must pay 5 to 10 USD. The other restrictions are: this archive
52 can only be spread in its original form without additions, deletions, or
53 modifications of any kind and it IS NOT TO BE SOLD FOR PROFIT. THIS INCLUDES
54 GERMAN PD DEALERS. If you wish to use this program for commercial purposes,
55 you need written permission from the author.
57 @{b}GETAUDIOID@{ub} IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
58 NO WARRANTIES ARE MADE. ALL USE IS AT YOUR OWN RISK. NO LIABILITY
59 OR RESPONSIBILITY IS ASSUMED.
62 @node Basics "Basics about GetAudioID"
66 @{u}WHAT DOES IT DO?@{uu}
68 This program opens a requester asking for the desired audio mode and mixing
69 frequency. It then returns the selected ID and frequency as a text string.
70 Optional @{"formatting" link Examples} is supported.
73 @node Compatibility "What is GetAudioID compatible with?"
77 @{u}COMPATIBILITY@{uu}
79 @{b}GetAudioID@{ub} requires Kickstart 2.04 or newer and ahi.device version
84 @node CLIStart "Starting GetAudioID from a CLI/Shell"
88 @{u}STARTING FROM CLI/SHELL@{uu}
90 You can start the program from a CLI/SHELL/etc. and @{"Workbench" link "WBStart"}.
92 To run the program, enter the following into your CLI/SHELL/etc.
94 1> GetAudioID DEC=DECIMAL/S,TITLE/K,POSITIVE/K,NEGATIVE/K,
95 LFORMAT/K,PUBSCREEN/K:
97 Where: DECIMAL prints the AudioID in decimal notation instead of
98 the default hexadecimal one. Use DEC as an abbreviation.
100 TITLE specifies the window title for the requester. Useful
101 for scripts. Keyword required.
103 POSITIVE specifies the gadget text for the positive gadget
104 (the 'OK' button). Useful for scripts. Keyword required.
106 NEGATIVE specifies the gadget text for the negative gadget
107 (the 'Cancel' button). Useful for scripts. Keyword required.
109 LFORMAT allows you to specify an alternate @{"formatting" link Examples}
110 string for the result. Useful for scripts. Keyword
111 required. Double quotes may be required.
113 PUBSCREEN specifies the public screen name where the
114 requester should open. Keyword required.
118 @node WBStart "Starting from the Workbench"
122 @{u}STARTING FROM WORKBENCH@{uu}
124 From Workbench, start the program like any other by double-clicking on its
125 icon. If, however, you would like to specify a @{"formatting string" link Examples} or
126 public screen, use the tool types. This is done by clicking once on the icon
127 and selecting 'Information...' from the 'Icons' menu in the Workbench. Then
128 change the tool types accordingly (please refer to your User Manual, if
129 necessary). Please take care with upper- and lowercase letters! The inputs ARE
130 case-sensitive. If a public screen name isn't given, @{b}GetAudioID@{ub} will
131 use the default public screen.
133 Below is a list of available tool types and there usage:
136 -----------------------------------------------------------------------
138 TITLE <Window title for the requester>
139 POSITIVE <Text for positive gadget (the 'OK' button)>
140 NEGATIVE <Text for negative gadget (the 'Cancel' button)>
141 LFORMAT <@{"Formatting string" link Examples} for the result>
142 PUBSCREEN <Name of the public screen to open on>
147 TITLE=Choose sound mode
150 LFORMAT=The selected mode ID was %ld, mixing frequency of %ld.
151 PUBSCREEN=My_Public_Screen.1
158 @node Examples "Formatting string examples"
162 @{u}HOW TO USE THE FORMATTING STRING@{uu}
164 To change the output of @{b}GetAudioID@{ub}, use the LFORMAT option. It
165 works like the LFORMAT option of the system command List. You may enter any
166 text you wish where the first occurance of "%ld" or "%lx" will be replaced
167 with the ModeID selected and the second with the mixing frequency. Use "%%"
168 to print a procent sign. @{b}NOTE:@{ub} You must use the "l" after the
169 procent sign and no more than two occurances of "%ld" or "%lx" are allowed.
173 LFORMAT=The AudioID for the selected mode is 0x%08lx (hex) and the mixing
176 LFORMAT="ID=$%lx MIX=$%lx"
179 @node Errors "Error messages displayed by GetAudioID"
183 @{u}ERROR MESSAGES@{uu}
185 The @{b}GetAudioID@{ub} program will display necessary error messages. If a library
186 can't be opened, the user will be informed. I HATE PROGRAMS THAT DON'T TELL
187 WHAT-THE-HELL IS GOING ON! That clear? If @{b}GetAudioID@{ub} doesn't give any
188 output something has gone terribly wrong or you're running with an old
189 Kickstart. Even in this case the return code will be set to -20 (FAIL).
192 @node Bugs "Known bugs"
198 No known bugs at the moment. @{b}GetAudioID@{ub} has been tested with
202 @node Versions "List of versions and changes"
208 Version Size Date Description
209 ------------------------------------------------------------------------
210 1.01 2276 01.05.96 Doesn't have a default AudioID anymore and thus
211 complies with the AHI standard.
212 Will return with code -5 (WARN) if no mode was
213 selected but OK was pressed.
215 1.00 2260 30.04.96 Added WB support.
216 Added options TITLE, POSITIVE, NEGATIVE,
218 Added locale support and Finnish catalog.
221 0.00a- N/A 29.04.96 Wrote the program basics and main routines.
225 @node Future "Future versions and ideas for them"
229 @{u}FUTURE VERSIONS@{uu}
231 Future version will have the bug fixes for the bugs I haven't found.
235 @node Shareware "GetAudioID shareware fee"
239 @{u}SHAREWARE FEE@{uu}
241 If you use this program on a regular basis, be kind enough to thank me with
242 a few bucks. The suggested fee is 5 to 10 USD. This doesn't apply if you've
243 registered @{b}AHIPlay@{ub} by @{"Tomi Blinnikka" link Author}.
246 @node Author "Contacting the author"
249 @{u}CONTACTING THE AUTHOR@{uu}
251 Please send donations, @{"bug" link "Bugs"} reports, and list of features you would like to
252 have included in @{"future versions" link "Future"} to
259 Contact me at the address above or you can also contact me on the
260 following BBS and net address:
264 docbliny@walrus.megabaud.fi
267 "...trademark of Xerox Corporations. Reading legal mush can turn your
268 brain to guacamole! Epson is registered trademark of Epson America
269 ..." -Amiga RKRM Includes & AutoDocs, fourth page.
274 docbliny@walrus.megabaud.fi